package com.jdrx.ocp.dao;

import com.jdrx.ocp.beans.entity.UserLoginLogsPO;
import com.jdrx.ocp.beans.vo.UserLoginLogsVO;
import com.jdrx.platform.jdbc.dao.BaseDAO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author: Huangxg
 * @Date: 2018/11/28 14:55
 */
@Mapper
public interface UserLoginLogsDAO extends BaseDAO<UserLoginLogsPO> {

//    List<Map<String,Object>> queryList(Map<String,Object> map);

	/**
     * 查询登录日志
     * @param map
     * @return
     */
    List<UserLoginLogsVO> queryList(Map<String, Object> map);

    /**
     * 当前用户的登录日志
     * @param uid
     * @return
     */
    List<UserLoginLogsVO> queryUserList(Integer uid);

    /**
     * 查询用户登录状态
     * @param map
     * @return
     */
    List<UserLoginLogsVO> queryAllUserLoginLogs(Map<String, Object> map);
}
